home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.cyberramp.net!news
- From: sinan@cyberramp.net (John L. Noland)
- Newsgroups: comp.lang.c
- Subject: Re: Problem w/simple linked list
- Date: 18 Apr 1996 23:40:24 GMT
- Organization: Uno mas por favor
- Message-ID: <4l6jt8$t5o@newshost.cyberramp.net>
- References: <4l5eha$5qa@news.duke.edu>
- NNTP-Posting-Host: ramp1-6.cyberramp.net
- X-Newsreader: WinVN 0.99.5
-
- In article <4l5eha$5qa@news.duke.edu>, stking@acpub.duke.edu says...
- >
- >Folks, I'm forgetting something here. Here's my problem. I'm
- >trying to compare a name I input with the names already
- >stored in nodes in my linked list. If there's a match,
- >I want to delete that node. However, I can't ever seem to
- >get a match using "strcmp()."
- >
-
- Have you tried stepping through the code in a debugger? It's
- a simple thing to do. If you provide a complete program for
- us, we can do it also. Without complete code, we have to guess
- and make assumptions to get the program to compile. This doesn't
- work very well and really isn't worth the effort. You don't have to
- post your entire program, but a complete example(with all data
- definitions) is helpful.
- Someone may be able to simply look at your code and tell you where
- the problem is. If not, follow my advice and either debug it yourself
- or post enough code for us to do it for you.
-
- -John
-
-